//
//  ViewController.m
//  GetNumberOfLines
//
//  Created by New on 16/5/30.
//  Copyright © 2016年 New. All rights reserved.
//

#import "ViewController.h"
#import "GetLinesManager.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    NSString *str = @"n a storyboard-based application, you will often want to do a little preparation before navigationn a storyboard-based application, you will often want to do a little preparation before navigationn a storyboard-based application, you will often want to do a little preparation before navigationn a storyboard-based application, you will often want to do a little preparation before navigation";
    
    NSLog(@"number of lines of text %ld",[GetLinesManager findNumberOfLinesForString:str size:CGSizeMake(200, CGFLOAT_MAX) font:[UIFont systemFontOfSize:15]]);
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
